<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/js.vue.js"></script>
</head>

<body>
    <div id="app">
        <hello v-slot="com">
            {{com}}
              <ul>
                <li v-for="item in com.date">{{item}}</li>
              </ul>
        </hello>
    </div>
    <script>
        let app = Vue.createApp({
            data() {
                return {

                }
            },
            components: {
                hello: {
                    data() {
                        return {
                                     list:[1,2,3,4]
                        }
                    },
                    template: `
                     <div class="box">
                    <h1>卧龙</h1>
                    <slot :date='list'></slot>
                    </div>
                    `
                }
            }
        });
        app.mount("#app")
    </script>
</body>

</html>